<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Vue.directive</title>
    <script type="text/javascript" src="../assets/js/vue.js"></script>
</head>
<body>
<div id="app">
<jspang></jspang>
    <panda></panda>
</div>

<script type="text/javascript">
    Vue.component('jspang',{
        template: `<div style="color: red">我是全局的jspan组件</div>`
    })

    var app=new Vue({
        el:'#app',
        components:{
            "panda":{
                template: `<div style="color: green">我是局部的jspan组件</div>`
            }
        }
    })


</script>
</body>
</html>